package test;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

public class LinkedHashMapExp {
	  public static void main(String[] args) {
	        Map<String, String> map = new LinkedHashMap<String, String>();
	        map.put("a3", "8");
	        map.put("a2", "6");
	        map.put("a5", "2");
	        map.put("a1", "7");
	        for (Iterator iterator = map.values().iterator(); iterator.hasNext();) {
	            String name = (String) iterator.next();
	            System.out.println(name);
	        }
	    }
}
